package com.readmark;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class ReadMoreIndexServlet extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");
		HttpSession session = request.getSession();
		if(session.getAttribute("uId")!=null){
			request.getSession().setAttribute("jobid", request.getParameter("jobId"));
			request.getSession().setAttribute("paytype", request.getParameter("paytype"));
			System.out.println(session.getAttribute("jobid")+"qweqweqw"+session.getAttribute("paytype"));
		}
		else{
			System.out.println("请先登录");
		}
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doGet(request, response);
		
	}

}
